//汽车类
public abstract class Vehicle {
	//属性： 品牌  车牌号  日租金
	private String brand;
	private String vehicleID;
	private int perRent;
	
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public String getVehicleID() {
		return vehicleID;
	}
	public void setVehicleID(String vehicleID) {
		this.vehicleID = vehicleID;
	}
	public int getPerRent() {
		return perRent;
	}
	public void setPerRent(int perRent) {
		this.perRent = perRent;
	}
	public Vehicle() {
		super();
	}
	public Vehicle(String brand, String vehicleID, int perRent) {
		super();
		this.brand = brand;
		this.vehicleID = vehicleID;
		this.perRent = perRent;
	}
	
	public abstract float calcRent(int days);
	@Override
	public String toString() {
		return "您租赁的车的品牌是：" + brand + ", 车牌号是：" + vehicleID + ", 日租金是：" + perRent ;
	}
}

